package com.cl.ks.entity;


import com.cl.ks.annotation.GenerateMVC;
import com.cl.mvc.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "ks_flow_node_result")
@org.hibernate.annotations.Table(appliesTo = "ks_flow_node_result", comment = "流程图节点输出表")
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@GenerateMVC
public class KsFlowNodeResult extends BaseEntity {

    @ApiModelProperty("节点名称")
    private String nodeName;
    @ApiModelProperty("节点代码")
    private String nodeCode;

    @ApiModelProperty("流程图id")
    private Integer ksFlowGraphId;

    @ApiModelProperty("流程图执行日志id")
    private Integer ksFlowGraphLogId;

    @ApiModelProperty("流程图执行记录id")
    @Column(name = "ks_flow_graph_record_id")
    private Integer ksFlowGraphRecordId;


    @Column(columnDefinition = "longtext")
    @ApiModelProperty("原始数据")
    private String result;
    @ApiModelProperty("定时任务id")
    private Integer ksFlowTaskId;

//    @JoinColumn(name = "ks_flow_graph_record_id",referencedColumnName = "id",insertable = false,updatable = false)
//    @ManyToOne
//    @JsonIgnoreProperties({"ksFlowGraphLogList"})
//    private KsFlowGraphRecord ksFlowGraphRecord;

}
